package cn.xiaobai.captcha.constant;

/**
 * @author yangdaji
 * @version 1.0
 * @Description: 常量
 * @date 22-3-7 下午 10:58
 */
public class Constant {

    /**
     * 验证码有效时间(默认秒为单位)
     */
    public static final int EXPIRE = 5;


    /**
     * 验证码类型 graph(默认图形),chinese(汉字),math(算术)
     */
    public static final String GRAPH = "graph";
    public static final String CHINESE = "chinese";
    public static final String MATH = "math";

    /**
     * 数据库类型
     */
    public static final String REDIS = "redis";
    public static final String MYSQL = "mysql";
    public static final String SQL_SERVER = "sqlserver";
    public static final String MONGODB = "mongodb";
    public static final String H2 = "h2";
    //后面的数据库对应key


    @Deprecated
    /**
     * 验证码缓存key
     */
    public static final String CAPTCHA_KEY = "captcha_key";
    /**
     * 缓存的key
     */
    public static final String CACHE_KEY = "cache_key";

}
